<?php
namespace ImiApp\Module\Member\Model\Base;

use Imi\Model\Model as Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * 信息评论 基类
 * @Entity
 * @Table(name="fa_adv_comment", id={"id"})
 * @DDL("CREATE TABLE `fa_adv_comment` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `adv_id` int(10) unsigned DEFAULT NULL COMMENT '信息id',
  `content` varchar(255) DEFAULT NULL COMMENT '评论内容',
  `uid` int(10) DEFAULT NULL COMMENT '评论用户',
  `time` int(10) DEFAULT NULL COMMENT '评论时间',
  `adv_comment_id` int(10) DEFAULT NULL COMMENT '评论id',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='信息评论'")
 * @property int $id 
 * @property int $advId 信息id
 * @property string $content 评论内容
 * @property int $uid 评论用户
 * @property int $time 评论时间
 * @property int $advCommentId 评论id
 */
abstract class AdvCommentBase extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * 信息id
     * adv_id
     * @Column(name="adv_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $advId;

    /**
     * 获取 advId - 信息id
     *
     * @return int
     */ 
    public function getAdvId()
    {
        return $this->advId;
    }

    /**
     * 赋值 advId - 信息id
     * @param int $advId adv_id
     * @return static
     */ 
    public function setAdvId($advId)
    {
        $this->advId = $advId;
        return $this;
    }

    /**
     * 评论内容
     * content
     * @Column(name="content", type="varchar", length=255, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $content;

    /**
     * 获取 content - 评论内容
     *
     * @return string
     */ 
    public function getContent()
    {
        return $this->content;
    }

    /**
     * 赋值 content - 评论内容
     * @param string $content content
     * @return static
     */ 
    public function setContent($content)
    {
        $this->content = $content;
        return $this;
    }

    /**
     * 评论用户
     * uid
     * @Column(name="uid", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $uid;

    /**
     * 获取 uid - 评论用户
     *
     * @return int
     */ 
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * 赋值 uid - 评论用户
     * @param int $uid uid
     * @return static
     */ 
    public function setUid($uid)
    {
        $this->uid = $uid;
        return $this;
    }

    /**
     * 评论时间
     * time
     * @Column(name="time", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $time;

    /**
     * 获取 time - 评论时间
     *
     * @return int
     */ 
    public function getTime()
    {
        return $this->time;
    }

    /**
     * 赋值 time - 评论时间
     * @param int $time time
     * @return static
     */ 
    public function setTime($time)
    {
        $this->time = $time;
        return $this;
    }

    /**
     * 评论id
     * adv_comment_id
     * @Column(name="adv_comment_id", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $advCommentId;

    /**
     * 获取 advCommentId - 评论id
     *
     * @return int
     */ 
    public function getAdvCommentId()
    {
        return $this->advCommentId;
    }

    /**
     * 赋值 advCommentId - 评论id
     * @param int $advCommentId adv_comment_id
     * @return static
     */ 
    public function setAdvCommentId($advCommentId)
    {
        $this->advCommentId = $advCommentId;
        return $this;
    }

}
